﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;

namespace Common
{
    internal class DAHelper
    {
        internal static bool HasColumn(IDataReader reader, string colName)
        {
            for (int i = 0; i < reader.FieldCount; i++)
            {
                if(reader.GetName(i).Equals(colName, StringComparison.InvariantCultureIgnoreCase))                
                    return true;                
            }
            return false;
        }
    }
}
